package top.mybatis.entitys;

import java.io.Serializable;

public class Dish implements Serializable {
    private Integer id;

    private String dishName;

    private Integer price;

    private Integer dishTypeId;

    private String imgExtName;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDishName() {
        return dishName;
    }

    public void setDishName(String dishName) {
        this.dishName = dishName;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getDishTypeId() {
        return dishTypeId;
    }

    public void setDishTypeId(Integer dishTypeId) {
        this.dishTypeId = dishTypeId;
    }

    public String getImgExtName() {
        return imgExtName;
    }

    public void setImgExtName(String imgExtName) {
        this.imgExtName = imgExtName;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", dishName=").append(dishName);
        sb.append(", price=").append(price);
        sb.append(", dishTypeId=").append(dishTypeId);
        sb.append(", imgExtName=").append(imgExtName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}